<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-1-15
 * Time: 下午3:08
 */

namespace home\modules\docu\controllers;


use home\modules\docu\models\FormDocuSearch;
use yii\web\Controller;

class SearchController extends Controller
{
    public function actionDocuSearch()
    {
        $form_docu_search = new FormDocuSearch();
        if ($form_docu_search->load(\Yii::$app->request->get())&&$form_docu_search->validate()){}
        $dataProvider = $form_docu_search->searchDocu();
        return $this->render('docu-search', [
            'dataProvider' => $dataProvider,
            'form_docu_search' => $form_docu_search,
        ]);
    }
}